﻿#include"test.h"
#include"XQLoginWidget.h"
#include<QApplication>
#include<QStyle>
void loginWidgetTest()
{
	auto login = new XQLoginWidget();
	bindDeleteLater(login);
	
	
	//login->clearUsers();
	auto icon=QApplication::style()->standardIcon(QStyle::SP_ComputerIcon).pixmap(200,200);
	login->addUser( icon,"121212","635656",false);
	login->addUser(icon, "546546", "635656");
	login->addUser(icon, "97979797", "635656");
	login->addUser( "1212654612", "635656", false);

	login->setCurrentUserName("727370630");

	login->show();
}